<template>
  <div>
    <h1>
        BaseC.vue-{{ props.data  }}
        <button @click="setCount">count+1</button>
    </h1>
  </div>
</template>

<script setup>
import { defineProps,defineEmits } from 'vue'
const emit = defineEmits(['setCount'])
const props = defineProps({
    data:{
        type: Number,
        default: 0
    }
})
const setCount=()=>{
    emit('setCount')
}
</script>

<style>

</style>